package com.shenzhen.horselive.api.response;


public class ApiResponse<T> {

    private static final int RESPONSE_CODE_SUCCESS = 200;

    public int code;
    public int status;
    public T data;
    public String message;
    private String msg;


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public boolean isSuccess() {
        return code == RESPONSE_CODE_SUCCESS;
    }


    public boolean isMSuccess() {
        return status == RESPONSE_CODE_SUCCESS;
    }



}
